package wechat.handler.bean.response.message.reply;

import org.dom4j.DocumentException;

import wechat.handler.bean.response.MessageBaseBean;

/**
 * 文本消息
 * 
 *
 */
public class ReplyTextBean extends MessageBaseBean {
	private String Content;
	
	public ReplyTextBean(String str) throws DocumentException {
		super(str);
		super.setMsgType(Reply_Message_Text);
	}
	
	public ReplyTextBean(){
		super.setMsgType(Reply_Message_Text);
	}

	public String getContent() {
		return Content;
	}

	public void setContent(String content) {
		Content = content;
	}
	
//	protected static final String Xpath_Content = "/xml/Content";
//	
//	public void transform() throws Exception {
//		super.transform();
//		this.setContent(getNodeText(Xpath_Content));
//	}
	
	
	public String buildXml() throws Exception {
		super.buildXml();
		super.addNodeValue("Content", getContent());
		return parent.asXML();
	}
	

}
